package com.yky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 项目组别信息
 * 
 * @author vimesly
 * 
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "work_project_group_version")
public class ProjectGroupVersion implements Serializable {

	private Integer id;
	private String groupName; // 组名称
	private String groupConditions; // 满足条件
	private String interventionType; // 干预类型
	private String interventionMeasures; // 干预措施

	private Project project; // 所属项目
	private ProjectVersion projectVersion; // 所属项目版本表

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "group_name")
	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Column(name = "group_conditions")
	public String getGroupConditions() {
		return groupConditions;
	}

	public void setGroupConditions(String groupConditions) {
		this.groupConditions = groupConditions;
	}

	@ManyToOne
	@JoinColumn(name = "project_id")
	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	@Column(name = "intervention_type")
	public String getInterventionType() {
		return interventionType;
	}

	public void setInterventionType(String interventionType) {
		this.interventionType = interventionType;
	}

	@Column(name = "intervention_measures")
	public String getInterventionMeasures() {
		return interventionMeasures;
	}

	public void setInterventionMeasures(String interventionMeasures) {
		this.interventionMeasures = interventionMeasures;
	}

	@ManyToOne
	@JoinColumn(name = "project_version_id")
	public ProjectVersion getProjectVersion() {
		return projectVersion;
	}

	public void setProjectVersion(ProjectVersion projectVersion) {
		this.projectVersion = projectVersion;
	}

}
